class HuMen:
    def __init__(self, name, age):
        self.name = name
        self.age = age

    def show(self):
        print('name:%s,age:%s' % (self.name, self.age))


class Student(HuMen):
    name = 'haha'
    age = 101
    classroom = '101'
    address = 'beijing'

    # def __init__(self, name, age):
    #     super().__init__(name, age)


    def __init__(self, name, age,classroom = None, address = None):
        super().__init__(name, age) # 调用父类的构造方法，必须的
        self.classroom = classroom
        self.address = address
    
    def print_age(self):
        print(self.age)
        
    def show(self):
        print('name:%s,age:%s,classroom:%s,address:%s' % (self.name, self.age,self.classroom,self.address))



# 主函数
if __name__ == "__main__":
    stu = Student('yejing', 35)
    stu.show()
    stu2 = Student('yejing', 35, '101', 'beijing')
    stu2.show()
